# -*- coding: UTF-8 -*-
'''
Created on 2018年3月20日 下午4:40:26

@author: wqp0010@gmail.com
'''

class Vector:
    '''
    classdocs
    '''


    def __init__(self, a, b):
        self.a = a
        self.b = b
        
    def __str__(self):
        return 'Vector (%d, %d)' % (self.a, self.b)
    
    def __add__(self, other):
        return Vector(self.a + other.a, self.b + other.b)

v1 = Vector(2, 10)
v2 = Vector(5, -2)
print(v1 + v2)